package com.qjs.weixin.customer.dto;


import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import com.qjs.dto.BaseRequest;


public class UserInfo extends BaseRequest{
	
	
	@NotBlank(message="昵称不能为空")
	private String nickname;
	
	@Email(message="邮箱格式不正确")
	private String email;

	@NotBlank
	@Length(min=6, max=20, message="密码在6-20位字符之间") 
	private String pswd;

	private Long status;

	@Length(min=3, max=5, message="密码在3-5位字符之间") 
	private String username;

	private String password;


	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname == null ? null : nickname.trim();
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email == null ? null : email.trim();
	}

	public String getPswd() {
		return pswd;
	}

	public void setPswd(String pswd) {
		this.pswd = pswd == null ? null : pswd.trim();
	}

	public Long getStatus() {
		return status;
	}

	public void setStatus(Long status) {
		this.status = status;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username == null ? null : username.trim();
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password == null ? null : password.trim();
	}

	@Override
	public String toString() {
		return "UserInfo [nickname=" + nickname + ", email=" + email + ", pswd=" + pswd + ", status=" + status
				+ ", username=" + username + ", password=" + password + "]";
	}
	
	
}